home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
GRAPH_FO
/
(GRAPH
/
GRAPH_HE
/
GRNODE.H
< prev
next >
Wrap
Text File
|
1991-02-15
|
1KB
|
50 lines
/******************************************************************************
GrNode.h
Graph methods in Object C.
This implements the GrNode class, base for GrVertex and GrEdge.
SUPERCLASS = CObject
Copyright ⌐ 1991 Maarten Meijer. All rights reserved.
CIS 100016,1764; FidoNet 2:512/114
*******************************************************************************/
#define _H_GrNode
/* externs */
#include <CObject.h>
/* class definition */
struct GrNode : CObject {
RgnHandle hotRegion;
Boolean selected;
void IGraphNode(void);
CObject * Copy();
/* Tracking methods */
short Track(void);
/* Drawing methods */
void _Draw(void); /* draw outline */
void Draw(void); /* draw contents */
/* Selection methods */
void Select(void);
void Deselect(void);
void ToggleNode(Boolean redraw);
Boolean Selected(void);
/* Location methods */
Boolean Incident(GrNode *which);
void SetRegion(void);
Boolean PtInNode(Point where);
/* Updating methods */
void GetRect(Rect *rect);
Boolean NodeInRect(Rect *r);
/* Freeing methods */
void Dispose(void); /* OVERRIDE */
};